using System;
using System.Collections.Generic;
using System.Text;

namespace Sleddog.BreederDelight.BCL
{
	public class DogCollection
	{
		private List<Dog> dogs = new List<Dog>( );

		public bool AddDog( Dog newDog )
		{
			if( !dogs.Exists( new Predicate<Dog>( newDog.MatchByDog ) ) )
			{
				dogs.Add( newDog );

				return true;
			}
			else
				return false;
		}

		public List<Dog> FindDog( string dogName )
		{
			Dog dog = new Dog( dogName );

			List<Dog> matchingDogs = dogs.FindAll( new Predicate<Dog>( dog.MatchByName ) );

			return matchingDogs;
		}

		public bool LoadFromFile( string filePath )
		{
			return false;
		}

		public bool SaveToFile( string filePath )
		{
			return false;
		}
	}
}
